#ifndef MYWIFI_MANAGER_H
#define MYWIFI_MANAGER_H
#include <WiFiManager.h>

IPAddress local_IP_AP(192, 168, 1, 1);
IPAddress gateway(192, 168, 1, 1);
IPAddress subnet(255, 255, 255, 0);

void setupWiFi()
{
  WiFiManager wifiManager;
  // wifiManager.resetSettings();
  wifiManager.setAPStaticIPConfig(local_IP_AP, gateway, subnet);
  wifiManager.autoConnect("ESP8266-AP");
  Serial.print("IP地址: ");
  Serial.println(WiFi.localIP());
}

#endif